#!/usr/bin/env python

"""Yaki setup script - based on the original Snakelets setup script"""

from distutils.core import setup
import sys,os

def main():
    if sys.argv[1].startswith("install"):
        print "There's nothing to install :-)"
        print "Just start the 'serv.py' script from this directory."
        print "(you can edit 'serv.py' for hostname/port settings)"
        print "On Unix? Have a look at monitor.py to run as a daemon."
        raise SystemExit

    setup(name="Yaki",
            license="MIT",
            version="0.1",
            description = "Yaki - A Wiki-like CMS written in Python atop Snakelets.",
            author = "Rui Carmo",
            author_email="rcarmo@users.sourceforge.net",
            url = "http://code.google.com/p/yaki/",
            long_description = """A wiki engine that relies extensively on filesystem storage and caching.""",
            packages=['snakeserver','webapps'],
            scripts = ['serv.py'],
            platforms='any'
        )

if __name__=="__main__":
    main()
